/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;

/**
 *
 * @author Kute_Ants
 */
public class chiTietKhuyenMaiPOJO implements Serializable
{
    private String maChuongTrinh;
    private String maSanPham;
    private int chietKhau = 0;//default %
    private String khac;
    
    //khoi tao

    public chiTietKhuyenMaiPOJO(String MaChuongTrinh, String MaSanPham, int ChietKhau, String Khac)
    {
        this.maChuongTrinh = MaChuongTrinh;
        this.maSanPham = MaSanPham;
        this.chietKhau = ChietKhau;
        this.khac = Khac;
    }
    
    public chiTietKhuyenMaiPOJO()
    {
        this.maChuongTrinh = null;
        this.maSanPham = null;
        this.chietKhau = 0;
        this.khac = null;
    }
    
    public chiTietKhuyenMaiPOJO(chiTietKhuyenMaiPOJO CTKM)
    {
        this.maChuongTrinh = CTKM.maChuongTrinh;
        this.maSanPham = CTKM.maSanPham;
        this.chietKhau = CTKM.chietKhau;
        this.khac = CTKM.khac;
    }
    
    // Phuong thuc get/set

    public int getChietKhau() {
        return chietKhau;
    }

    public void setChietKhau(int ChietKhau) {
        this.chietKhau = ChietKhau;
    }

    public String getKhac() {
        return khac;
    }

    public void setKhac(String Khac) {
        this.khac = Khac;
    }

    public String getMaChuongTrinh() {
        return maChuongTrinh;
    }

    public void setMaChuongTrinh(String MaChuongTrinh) {
        this.maChuongTrinh = MaChuongTrinh;
    }

    public String getMaSanPham() {
        return maSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.maSanPham = MaSanPham;
    }
    
    // phuong thuc String.toString
    
    
    
    
    
}
